-- GENERATED SPELL FOR [Darkweb Recluse] --


function spell0_26625(pUnit, Event) --@Encasing Webs,n/a--
pUnit:FullCastSpellOnTarget(49704,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26625', 7500, 1)
end

function spell1_26625(pUnit, Event) --@Poison Spit,n/a--
pUnit:FullCastSpellOnTarget(49708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26625', 9500, 1)
end

function spell2_26625(pUnit, Event) --@Poison Spit,n/a--
pUnit:FullCastSpellOnTarget(32330,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26625', 12500, 1)
end

function Sorts_26625(pUnit, Event)
local choix_sorts_26625 = math.random(0, 2)
if choix_sorts_26625 == 0 then
pUnit:RegisterEvent('spell0_26625', 1, 1)
end
if choix_sorts_26625 == 1 then
pUnit:RegisterEvent('spell1_26625', 1, 1)
end
if choix_sorts_26625 == 2 then
pUnit:RegisterEvent('spell2_26625', 1, 1)
end
end

function mob26625_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26625', math.random(1500, 3000), 1)
end

function mob26625_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26625_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26625_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26625, 1, 'mob26625_Action')
RegisterUnitEvent(26625, 2, 'mob26625_Leave')
RegisterUnitEvent(26625, 3, 'mob26625_Kill')
RegisterUnitEvent(26625, 4, 'mob26625_Die')
